package com.neoharvest.smartagri.facade;

import com.neoharvest.smartagri.factory.AgriculturalMachineFactory;
import com.neoharvest.smartagri.model.AgriculturalMachine;

public class SmartAgriFacade {
    private AgriculturalMachineFactory factory;

    public SmartAgriFacade(AgriculturalMachineFactory factory) {
        this.factory = factory;
    }

    public void startHarvesting() {
        AgriculturalMachine harvester = factory.createHarvesterMachine();
        harvester.start();
        harvester.executeTask();
    }

    public void startSeeding() {
        AgriculturalMachine seeder = factory.createSeederMachine();
        seeder.start();
        seeder.executeTask();
    }
}